<?
require_once ('../../models/Users.php');

	$response = Session_Manager::Insert($row);
	if($response === true)
		header("Location: index.php");


?>


<!DOCTYPE html>
<html lang="en">
	<? include('../../inc/head.php'); ?>
	<body>
		<div>
			<? include('../../inc/nav.php'); ?>

			<div id="content">
				
				<? if(isset($response)): ?>
					<dl class="dl-horizontal error">
						<? foreach ($response as $key => $value) { ?>
							<dt><?=$key?></dt>
							<dd><?=$value?></dd>
						<? } ?>						
					</dl>
				<? endif; ?>
				<form class="form-horizontal" action="" method="post">
					<input type="hidden" name="id" value="<?=$row['idS_Manager']?>" />
					<div class="control-group">
						<label class="control-label" for="idS_Manager">Session_Manager Id:</label>
						<div class="controls">
							<input type="text" name="idS_Manager" id="idS_Manager"/>
						</div>
					</div>
					
				<div class="control-group">
						<label class="control-label">User Name:</label>
						<div class="controls">
							<input type="text" name="S_UserName" />
						</div>
					</div>
				
					<div class="control-group">
						<label class="control-label">Session Dept:</label>
						<div class="controls">
							<input type="text" name="Session_Dept"  />
						</div>
					</div>
						
				</form>

			</div>
			<? include('../../inc/footer.php'); ?>
		</div>
	</body>
</html>